using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TerritoryDesignTools._TerritorySolution
{
    /// <summary>
    /// <para>Add Territory Level</para>
    /// <para>Creates a new empty feature class to represent a level.</para>
    /// <para>创建一个新的空要素类来表示标高。</para>
    /// </summary>    
    [DisplayName("Add Territory Level")]
    public class AddTerritoryLevel : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddTerritoryLevel()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_territory_solution">
        /// <para>Input Territory Solution</para>
        /// <para>The input territory solution.</para>
        /// <para>输入区域解决方案。</para>
        /// </param>
        /// <param name="_level_name">
        /// <para>Level Name</para>
        /// <para>The name of the new territory level.</para>
        /// <para>新区域级别的名称。</para>
        /// </param>
        public AddTerritoryLevel(object _in_territory_solution, object _level_name)
        {
            this._in_territory_solution = _in_territory_solution;
            this._level_name = _level_name;
        }
        public override string ToolboxName => "Territory Design Tools";

        public override string ToolName => "Add Territory Level";

        public override string CallName => "td.AddTerritoryLevel";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_territory_solution, _level_name, _default_territory_name, _out_territory_solution, _primary_feature_class.GetGPValue()];

        /// <summary>
        /// <para>Input Territory Solution</para>
        /// <para>The input territory solution.</para>
        /// <para>输入区域解决方案。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Territory Solution")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_territory_solution { get; set; }


        /// <summary>
        /// <para>Level Name</para>
        /// <para>The name of the new territory level.</para>
        /// <para>新区域级别的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Level Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _level_name { get; set; }


        /// <summary>
        /// <para>Default Territory Name</para>
        /// <para>The name to be used as a prefix for new territories that will be created.</para>
        /// <para>要用作将要创建的新区域的前缀的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Default Territory Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _default_territory_name { get; set; } = null;


        /// <summary>
        /// <para>Updated Territory Solution</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Territory Solution")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_territory_solution { get; set; }


        /// <summary>
        /// <para>Primary Feature Class</para>
        /// <para><xdoc>
        ///   <para>Specifies the class level that will be used for storing level attributes.</para>
        ///   <bulletList>
        ///     <bullet_item>Territory Boundaries—Polygon features that represent the territory boundaries.</bullet_item><para/>
        ///     <bullet_item>Territory Centers— Point features that represent the territory centers.</bullet_item><para/>
        ///     <bullet_item>Base Boundaries—Polygon features that represent the base-level feature boundaries.</bullet_item><para/>
        ///     <bullet_item>Base Centers—Point features that represent the base-level feature centers.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定将用于存储级别属性的类级别。</para>
        ///   <bulletList>
        ///     <bullet_item>Territory Boundaries - 表示 Territory 边界的面要素。</bullet_item><para/>
        ///     <bullet_item>区域中心 - 表示区域中心的点要素。</bullet_item><para/>
        ///     <bullet_item>基本边界 - 表示基本要素边界的面要素。</bullet_item><para/>
        ///     <bullet_item>基础中心 - 表示基本级要素中心的点要素。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Primary Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _primary_feature_class_value? _primary_feature_class { get; set; } = null;

        public enum _primary_feature_class_value
        {
            /// <summary>
            /// <para>Territory Boundaries</para>
            /// <para>Territory Boundaries—Polygon features that represent the territory boundaries.</para>
            /// <para>Territory Boundaries - 表示 Territory 边界的面要素。</para>
            /// </summary>
            [Description("Territory Boundaries")]
            [GPEnumValue("TERRITORY_BOUNDARIES")]
            _TERRITORY_BOUNDARIES,

            /// <summary>
            /// <para>Territory Centers</para>
            /// <para>Territory Centers— Point features that represent the territory centers.</para>
            /// <para>区域中心 - 表示区域中心的点要素。</para>
            /// </summary>
            [Description("Territory Centers")]
            [GPEnumValue("TERRITORY_CENTERS")]
            _TERRITORY_CENTERS,

            /// <summary>
            /// <para>Base Boundaries</para>
            /// <para>Base Boundaries—Polygon features that represent the base-level feature boundaries.</para>
            /// <para>基本边界 - 表示基本要素边界的面要素。</para>
            /// </summary>
            [Description("Base Boundaries")]
            [GPEnumValue("BASE_BOUNDARIES")]
            _BASE_BOUNDARIES,

            /// <summary>
            /// <para>Base Centers</para>
            /// <para>Base Centers—Point features that represent the base-level feature centers.</para>
            /// <para>基础中心 - 表示基本级要素中心的点要素。</para>
            /// </summary>
            [Description("Base Centers")]
            [GPEnumValue("BASE_CENTERS")]
            _BASE_CENTERS,

        }

        public AddTerritoryLevel SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}